package com.xinqi.modules.exam.common.manager;

import com.xinqi.modules.exam.common.mapper.dto.ClassBaseDTO;
import com.xinqi.modules.exam.common.mapper.dto.ClassStudentBaseDTO;
import com.xinqi.modules.user.user.dto.rsp.UserBaseInfoDO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author linkai
 * @date 2023/7/15
 */
public interface CommonClassManager {
    List<Long> findStudentIdByClassId(@Param("classId") Long classId);

    List<Long> findUserIdByClassId(Long classId);

    List<Long> findRelationShipAndTeacherIdByClassId(Long classId);

    List<ClassStudentBaseDTO> findStudentBaseByClassId(@Param("classId") Long classId);

    List<ClassStudentBaseDTO> findStudentBase(@Param("classId") Long classId, @Param("studentIds") List<Long> studentIds);

    ClassBaseDTO findBaseByClassId(@Param("classId") Long classId);

    List<UserBaseInfoDO> findUserInfoByUserIds(List<Long> userIds);

    UserBaseInfoDO findUserInfoByUserId(@Param("userId") Long userId);

    String findChapterNameById(Long chapterId);
}
